import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: () => import('@/components/HelloWorld')
    },
    {
      path: '/test',
      name: 'test',
      component: () => import('@/pages/test')
    },
    {
      path: '/one',
      name: 'one.vue',
      component: () => import('@/pages/better-scroll/one')
    },
    {
      path: '/header',
      name: 'header',
      component: () => import('@/pages/public/Header')
    },
    {
      path: '/index',
      name: 'index',
      component: () => import('@/pages/index/index')
    },
    {
      path: '/demo1',
      name: 'demo1',
      component: () => import('@/pages/map/demo1')
    },
    {
      path: '/demo2',
      name: 'demo2',
      component: () => import('@/pages/map/demo2')
    },
    {
      path: '/demo3',
      name: 'demo3',
      component: () => import('@/pages/map/demo3')
    },
    {
      path: '/demo4',
      name: 'demo4',
      component: () => import('@/pages/map/demo4')
    }
  ]
})
